<?php
	if (isset($_COOKIE["user"])) {
		setcookie("user", "", time()-3600);
		unset($_SESSION['user']);
		unset($_SESSION['email']);
		unset($_SESSION['type']);
		$json = array("status" => "success");
		$jsondata = json_encode($json);
		echo $jsondata;
	}
?>